Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CPW loader to include 7day/hourly forecasts, warnings, sunrise… #353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dukestep
Copy link
Contributor

@Dukestep Dukestep commented Sep 26, 2024

This PR updates the CPW realtime loader to also include the 7-day forecasts, hourly forecasts, warnings and sunrise/sunset times. It also implements a new document mapping meant to more closely resemble how the XML data is structured. See an example GeoJSON feature on geojson.io.

A custom provider (msc_pygeoapi/provider/cpw_elasticsearch.py) was created to allow for better support of ElasticSearch nested fields (used here to contain an array of forecast objects) and GeoJSON properties with an object as a value. Additionally, support for querying nested fields was added when a OGC API Features query contains a value filter on a property comprised of a nested field.

@Dukestep Dukestep marked this pull request as draft September 26, 2024 13:48
@Dukestep Dukestep marked this pull request as ready for review September 26, 2024 13:56
@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch 3 times, most recently from 704b550 to 0a3bb92 Compare September 26, 2024 15:14
@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch from 0a3bb92 to 0784315 Compare November 28, 2024 18:01
@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch from 0784315 to 6ca4343 Compare December 5, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants